package com.szrt.zw.test.menu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.szrt.zw.test.base.BaseDao;
import com.szrt.zw.test.base.BaseServiceImpl;
import com.szrt.zw.test.menu.dao.MenuDao;
import com.szrt.zw.test.menu.entity.MenuEntity;
import com.szrt.zw.test.menu.service.MenuService;






@Service
public class MenuServiceImpl extends BaseServiceImpl<MenuEntity> implements MenuService {
	
	@Autowired
	private MenuDao dao;
	
	@Override
	public BaseDao<MenuEntity> getBaseDao() {
		return dao;
	}

	@Override
	public MenuEntity findRootNode() {
		return dao.findRootNode();
	}

	@Override
	public List<MenuEntity> findChildren(Integer id) {
		return dao.findChildren(id);
	}

	@Override
	public int checkLeaf(int id) {
		return dao.checkLeaf(id);
	}

	

}
